using System;
using System.Data.SqlTypes;

namespace EntityObjectLayer
{
    [Serializable]
    public class BEUsers
    {
        #region Class Member Declarations

        private SqlString m_sPass;
        private SqlString m_sPermission;
        private SqlString m_sUserName;

        #endregion

        #region Class Property Declarations

        public SqlString sUserName
        {
            get { return m_sUserName; }
            set
            {
                SqlString sUserNameTmp = value;
                if (sUserNameTmp.IsNull)
                {
                    throw new ArgumentOutOfRangeException("sUserName", "sUserName can't be NULL");
                }
                m_sUserName = value;
            }
        }


        public SqlString sPass
        {
            get { return m_sPass; }
            set
            {
                SqlString sPassTmp = value;
                if (sPassTmp.IsNull)
                {
                    throw new ArgumentOutOfRangeException("sPass", "sPass can't be NULL");
                }
                m_sPass = value;
            }
        }


        public SqlString sPermission
        {
            get { return m_sPermission; }
            set
            {
                SqlString sPermissionTmp = value;
                if (sPermissionTmp.IsNull)
                {
                    throw new ArgumentOutOfRangeException("sPermission", "sPermission can't be NULL");
                }
                m_sPermission = value;
            }
        }

        #endregion
    }
}